#include <iostream>
using namespace std;
	
	void DisplayHeader();
	void autoLoanComparissonCalculator(); // AutoLoancomp_sumbatashvili.cpp
	void AutoMonthlyPayment(); // Auto - Loan Monthly Payment.cpp
	void AutoBuyOrLease(); // TSSchubert_Term_Main.cpp
	void GASCALCULATOR(); // VannyKong_Gas Calculator.cpp
	void DanielDavilaMortCalc(); // DanielDavila_MortgageCalculator.cpp
	void HomeEquityLoanPayment(); // Term_Project.cpp
	void MortgageAmortization(); // shermattie.cpp
	void HomeEquityCalcuator(); // Bunis_Walker_Home_Equity_TeamProject.cpp
	void biweekMortgage(); // biWeekly Mortgage calc.cpp
	void CDcalculator(); // CDcalculator.cpp
	void YieldToMaturity(); // YieldToMaturityCalculator.cpp
	void EZloan(); // EZLoan_Calc.cpp
	void AnnuityCalculator(); // Investment_Annuity.cpp
	void CSretirementCalc(); // CSemana_RetirementCalc_TermProj.cpp
	void iWantToBeAMillionaire(); // MILLIONAIRE.cpp
	void CCpaymentCalculator(); // QuanLin_CC_Payment_Calculator.cpp
	void CostOfRaisingAChild(); // costofraisingchild_mkaur.cpp
	void ficoscore(); // fico score calculator.cpp
	void retirementIncome(); // Main_William_Wang.cpp
	void SimpleSavingCalculator(); // Sandy.Main.cpp
	void VitasSavingsCalculator(); // VitasSavingsCalculator.cpp
	void SpendingCalculator(); // SavingCalculator_Spendingless.cpp
	void currentRatio(); // Chenwei_Huang_SmallBusinessCalculator_Current Ratio.cpp
	void quickratio(); // quickratio_HaoWu.cpp
	void WACCCalc(); // WACC Calc.cpp
	void GPMRC(); // Emmanuel_GPMR_Calc.cc
	void compoundCalculator(); // Jilong_ling.cpp
	void StudentLoanCalculator(); // Main_PhilipGladek.cpp
	void KCStuBud(); // Kuang-YuanChenStudentBudget.cpp

void AutoCalculators()
{
	DisplayHeader();

	int choice = 9999;
	cout << "\t1- Loan Comparison -- by Mikheil Sumbatashvili" << endl;
	cout << "\t2- Loan Calculator -- by Andrea Edwards" << endl;
	cout << "\t0- for main menu" << endl;

	cin >> choice;
	if (choice == 1) autoLoanComparissonCalculator();
	if (choice == 2) AutoMonthlyPayment();
}
void CarCalculators()
{
	DisplayHeader();

	int choice = 9999;
	cout << "\t1- Buy or Lease a Car? -- by Timothy Schubert" << endl;
	cout << "\t2- Gas Calculator -- by Vanny Kong" << endl;
	cout << "\t0- for main menu" << endl;

	cin >> choice;
	if (choice == 1) AutoBuyOrLease();
	if (choice == 2) GASCALCULATOR();
}
void HomeCalculators()
{
	DisplayHeader();

	int choice = 9999;
	cout << "\t1- Mortgage Calculator -- by Daniel Davila" << endl;
	cout << "\t2- Home Equity Loan Payment Calculator -- by Spiros Vangelatos" << endl;
	cout << "\t3- Mortgage Amortization Calculator -- by Shermattie Brijram" << endl;
	cout << "\t4- Home Equity Calculator -- by Bunis Walker" << endl;
	cout << "\t5- BiWeekly Mortgage Calculator -- by Zhikang Ling" << endl;
	cout << "\t0- for main menu" << endl;

	cin >> choice;
	if (choice == 1) DanielDavilaMortCalc();
	if (choice == 2) HomeEquityLoanPayment();
	if (choice == 3) MortgageAmortization();
	if (choice == 4) HomeEquityCalcuator();
	if (choice == 5) biweekMortgage();
}
void InvestmentCalculators()
{
	DisplayHeader();

	int choice = 9999;
	cout << "\t1- CD Calculator -- by Yatwa Ng" << endl;
	cout << "\t2- Approximate Yield to Maturity for a Bond -- by Robinson Lenis" << endl;
	cout << "\t3- EZ Loan Calculator -- by Edward Zhao" << endl;
	cout << "\t4- Annuity Calculator -- by RuiXuan Liao" << endl;
	cout << "\t5- SIMPLE RETIREMENT CALCULATOR -- by Christian Semana" << endl;
	cout << "\t0- for main menu" << endl;

	cin >> choice;
	if (choice == 1) CDcalculator();
	if (choice == 2) YieldToMaturity();
	if (choice == 3) EZloan();
	if (choice == 4) AnnuityCalculator();
	if (choice == 5) CSretirementCalc();
}
void PersonalCalculators()
{
	DisplayHeader();

	int choice = 9999;
	cout << "\t1- HOW LONG UNTIL YOU BECOME A MILLIONAIRE -- by Henry Urbano" << endl;
	cout << "\t2- CC Payment Calculator -- by Quan Lin" << endl;
	cout << "\t3- Cost Of Raising A Child -- by Manpreet Kaur" << endl;
	cout << "\t4- FICO Score Calculator -- by Robert Serafin" << endl;
	cout << "\t5- Retirement Income Calculator -- by William Wang" << endl;
	cout << "\t6- Simple Saving Calculator -- by Sandy Yang" << endl;
	cout << "\t7- Savings Calculator -- by Vita Kazais" << endl;
	cout << "\t8- Spending Calculator -- by Ying Wang" << endl;
	cout << "\t0- for main menu" << endl;

	cin >> choice;
	if (choice == 1) iWantToBeAMillionaire();
	if (choice == 2) CCpaymentCalculator();
	if (choice == 3) CostOfRaisingAChild();
	if (choice == 4) ficoscore();
	if (choice == 5) retirementIncome();
	if (choice == 6) SimpleSavingCalculator();
	if (choice == 7) VitasSavingsCalculator();
	if (choice == 8) SpendingCalculator();
}

void Small_BusinessCalculators()
{
	DisplayHeader();

	int choice = 9999;
	cout << "\t1- Current Ratio -- by Chenwei_Huang" << endl;
	cout << "\t2- Quick(Acid) ratio calculator -- by Hao Wu" << endl;
	cout << "\t3- Weighted Average Cost of Capital Calculator -- by Tuan Bui" << endl;
	cout << "\t4- Gross Profit Margin Ratio Calculator -- by Emmanuel Mendez" << endl;
	cout << "\t5- Compounding Interest Calculator -- by Jilong Ling" << endl;
	cout << "\t0- for main menu" << endl;

	cin >> choice;
	if (choice == 1) currentRatio();
	if (choice == 2) quickratio();
	if (choice == 3) WACCCalc();
	if (choice == 4) GPMRC();
	if (choice == 5) compoundCalculator();
}

void StudentCalculators()
{
	DisplayHeader();

	int choice = 9999;
	cout << "\t1- Student Loan Debt Calculator -- by Philip Gladek" << endl;
	cout << "\t2- Student Budget Calculator -- by Kuang-Yuan Chen" << endl;
	cout << "\t0- for main menu" << endl;


	cin >> choice;
	if (choice == 1) StudentLoanCalculator();
	if (choice == 2) KCStuBud();
}

void DisplayHeader()
{
	system("cls");
	cout << "_________ .___  _________ ________  ___________  _______   " << endl;
	cout << "\\_   ___ \\|   |/   _____/ \\_____  \\/_   \\   _  \\ \\   _  \\  " << endl;
	cout << "/    \\  \\/|   |\\_____  \\    _(__  < |   /  /_\\  \\/  /_\\  \\ " << endl;
	cout << "\\     \\___|   |/        \\  /       \\|   \\  \\_/   \\  \\_/   \\" << endl;
	cout << " \\______  /___/_______  / /______  /|___|\\_____  /\\_____  /" << endl;
	cout << "        \\/            \\/         \\/            \\/       \\/ " << endl;
	cout << "" << endl;
}

int main()
{
	int choice = 9999;
	while (choice != 0)
	{

		DisplayHeader();

		cout << "" << endl;
		cout << "\t1- Auto Tools" << endl;
		cout << "\t2- Car Tools" << endl;
		cout << "\t3- Home Tools" << endl;
		cout << "\t4- Investment Tools" << endl;
		cout << "\t5- Personal Tools" << endl;
		cout << "\t6- Small_Business Tools" << endl;
		cout << "\t7- Student Tools" << endl;
		cout << "" << endl;
		cout << "\tMake your choice? ";
		
		cin >> choice;

		if (choice == 1) AutoCalculators();
		if (choice == 2) CarCalculators();
		if (choice == 3) HomeCalculators();
		if (choice == 4) InvestmentCalculators();
		if (choice == 5) PersonalCalculators();
		if (choice == 6) Small_BusinessCalculators();
		if (choice == 7) StudentCalculators();
	}
}
